package com.Java.train.member.controller.feign;

import com.Java.train.common.req.MemberTicketReq;
import com.Java.train.common.response.CommonResp;
import com.Java.train.common.response.PageResp;
import com.Java.train.member.domain.DTO.TicketDTO;
import com.Java.train.member.domain.Ticket;
import com.Java.train.member.req.TicketQueryReq;
import com.Java.train.member.service.TicketService;
import io.swagger.annotations.ApiOperation;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
* @author luomoxingchen
* @since 2024-10-08
*/
@RestController
@RequestMapping("/feign/ticket")
public class FeignTicketController {

    @Autowired
    private TicketService ticketService;


    @PostMapping("/save")
    @ApiOperation("Ticket修改")
    public CommonResp<Object> update(@Valid @RequestBody MemberTicketReq req) {
        return ticketService.modify(req);
    }
}
